﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_DAO.db;
using System.Data;
using Cashier_DAO;
using System.Data.Common;

namespace Cashier_Service
{
    public class ChinacityService
    {
        /// <summary>
        /// 查询省市信息
        /// </summary>
        /// <param name="parent"></param>
        /// <returns></returns>
        public DataTable GetChinacityTable(String parent)
        {
            DataTable dt = null;
            try
            {
                using (DbConnection conn = ConnectionFactory.GetDbConnection())
                {
                    dt = new ChinacityDAO().GetChinacityTable(conn, parent);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return dt;
        }
    }
}
